#include "ShipLifeMonitor.h"

using namespace view;

ShipLifeMonitor::ShipLifeMonitor(void) : SDLProgressMonitor()
{
}

ShipLifeMonitor::ShipLifeMonitor(int min, int max, int current) : SDLProgressMonitor(min, max, current)
{
}

ShipLifeMonitor::~ShipLifeMonitor(void)
{
}

void ShipLifeMonitor::update(Observable* shipLifeProperty)
{
	ShipLifeProperty* shipLife = static_cast<ShipLifeProperty*>(shipLifeProperty);
	currentProgress = shipLife->getProgress();
}
